package com.tz.spring.sysmanage.service.impl;

import java.util.List;
import java.util.Map;

import com.tz.spring.sysmanage.dao.IStudentDao;
import com.tz.spring.sysmanage.entity.Student;
import com.tz.spring.sysmanage.service.IStudentService;

/**
 * 用于对外提供学生服务类的增删改查实现
 * @author Administrator
 *
 */
public class StudentService implements IStudentService{

	private IStudentDao studentDao;
	
	 
	public void setStudentDao(IStudentDao studentDao) {
		this.studentDao = studentDao;
	}

	@Override
	public boolean addStudent(Student student) {
		return this.studentDao.addStudent(student);
	}

	@Override
	public boolean delStudent(Integer studentId) {
		return this.studentDao.delStudent(studentId);
	}

	@Override
	public boolean updateStudent(Student student) {
		return this.studentDao.updateStudent(student);
	}

	@Override
	public List<Student> getStudentList() {
		return this.studentDao.getStudentList();
	}

	@Override
	public List<Map<String, Object>> getStudentMap() {
		 return this.studentDao.getStudentMap();
	}
	
 
}
